Optimal. Leaf size=54 \[ -\frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {d x^{-r}}{e}\right )}{d r}+\frac {b n \text {Li}_2\left (-\frac {d x^{-r}}{e}\right )}{d r^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {2379, 2438}
\begin {gather*} \frac {b n \text {PolyLog}\left (2,-\frac {d x^{-r}}{e}\right )}{d r^2}-\frac {\log \left (\frac {d x^{-r}}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{d r} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2379
Rule 2438
Rubi steps
\begin {align*} \int \frac {a+b \log \left (c x^n\right )}{x \left (d+e x^r\right )} \, dx &=-\frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {d x^{-r}}{e}\right )}{d r}+\frac {(b n) \int \frac {\log \left (1+\frac {d x^{-r}}{e}\right )}{x} \, dx}{d r}\\ &=-\frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {d x^{-r}}{e}\right )}{d r}+\frac {b n \text {Li}_2\left (-\frac {d x^{-r}}{e}\right )}{d r^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 108, normalized size = 2.00 \begin {gather*} \frac {b n r^2 \log ^2(x)-2 r \left (a+b \log \left (c x^n\right )\right ) \log \left (d-d x^r\right )+2 b n r \log (x) \left (\log \left (d-d x^r\right )-\log \left (d+e x^r\right )\right )+2 b n \log \left (-\frac {e x^r}{d}\right ) \log \left (d+e x^r\right )+2 b n \text {Li}_2\left (1+\frac {e x^r}{d}\right )}{2 d r^2} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.15, size = 451, normalized size = 8.35
method | result | size |
risch | \(\frac {b \ln \left (d +e \,x^{r}\right ) n \ln \left (x \right )}{r d}-\frac {b \ln \left (d +e \,x^{r}\right ) \ln \left (x^{n}\right )}{r d}-\frac {b \ln \left (x^{r}\right ) n \ln \left (x \right )}{r d}+\frac {b \ln \left (x^{r}\right ) \ln \left (x^{n}\right )}{r d}+\frac {b n \ln \left (x \right )^{2}}{2 d}-\frac {b n \ln \left (x \right ) \ln \left (1+\frac {e \,x^{r}}{d}\right )}{r d}-\frac {b n \polylog \left (2, -\frac {e \,x^{r}}{d}\right )}{r^{2} d}+\frac {i b \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \left (x^{r}\right )}{2 r d}-\frac {i b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3} \ln \left (x^{r}\right )}{2 r d}+\frac {i b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3} \ln \left (d +e \,x^{r}\right )}{2 r d}-\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \left (d +e \,x^{r}\right )}{2 r d}-\frac {i b \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \left (d +e \,x^{r}\right )}{2 r d}+\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \left (x^{r}\right )}{2 r d}+\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right ) \ln \left (d +e \,x^{r}\right )}{2 r d}-\frac {i b \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right ) \ln \left (x^{r}\right )}{2 r d}-\frac {b \ln \left (c \right ) \ln \left (d +e \,x^{r}\right )}{r d}+\frac {b \ln \left (c \right ) \ln \left (x^{r}\right )}{r d}-\frac {a \ln \left (d +e \,x^{r}\right )}{r d}+\frac {a \ln \left (x^{r}\right )}{r d}\) | \(451\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 96, normalized size = 1.78 \begin {gather*} \frac {b n r^{2} \log \left (x\right )^{2} - 2 \, b n r \log \left (x\right ) \log \left (\frac {x^{r} e + d}{d}\right ) - 2 \, b n {\rm Li}_2\left (-\frac {x^{r} e + d}{d} + 1\right ) - 2 \, {\left (b r \log \left (c\right ) + a r\right )} \log \left (x^{r} e + d\right ) + 2 \, {\left (b r^{2} \log \left (c\right ) + a r^{2}\right )} \log \left (x\right )}{2 \, d r^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 194.90, size = 452, normalized size = 8.37 \begin {gather*} - \frac {2 a e \left (\begin {cases} \frac {1}{2 e} + \frac {x^{r}}{d} & \text {for}\: e = 0 \\- \frac {\log {\left (- 2 e x^{r} \right )}}{2 e} & \text {otherwise} \end {cases}\right )}{d r} - \frac {2 a e \left (\begin {cases} \frac {1}{2 e} + \frac {x^{r}}{d} & \text {for}\: e = 0 \\\frac {\log {\left (2 d + 2 e x^{r} \right )}}{2 e} & \text {otherwise} \end {cases}\right )}{d r} + \frac {2 b e n \left (\begin {cases} \begin {cases} \frac {\log {\left (x \right )}}{2 e} + \frac {x^{r}}{d r} & \text {for}\: r \neq 0 \\\frac {\log {\left (x \right )}}{2 e} + \frac {\log {\left (x \right )}}{d} & \text {otherwise} \end {cases} & \text {for}\: e = 0 \\- \frac {\begin {cases} 0 & \text {for}\: \frac {1}{\left |{e x^{r}}\right |} < 1 \wedge \left |{e x^{r}}\right | < 1 \\\frac {\log {\left (e x^{r} \right )}^{2}}{2 r} + \frac {i \pi \log {\left (e x^{r} \right )}}{r} & \text {for}\: \left |{e x^{r}}\right | < 1 \\\frac {\log {\left (\frac {x^{- r}}{e} \right )}^{2}}{2 r} - \frac {i \pi \log {\left (\frac {x^{- r}}{e} \right )}}{r} & \text {for}\: \frac {1}{\left |{e x^{r}}\right |} < 1 \\\frac {{G_{3, 3}^{3, 0}\left (\begin {matrix} & 1, 1, 1 \\0, 0, 0 & \end {matrix} \middle | {e x^{r} e^{i \pi }} \right )}}{r} + \frac {{G_{3, 3}^{0, 3}\left (\begin {matrix} 1, 1, 1 & \\ & 0, 0, 0 \end {matrix} \middle | {e x^{r} e^{i \pi }} \right )}}{r} & \text {otherwise} \end {cases}}{2 e} - \frac {\log {\left (2 \right )} \log {\left (x \right )}}{2 e} & \text {otherwise} \end {cases}\right )}{d r} + \frac {2 b e n \left (\begin {cases} \begin {cases} \frac {\log {\left (x \right )}}{2 e} + \frac {x^{r}}{d r} & \text {for}\: r \neq 0 \\\frac {\log {\left (x \right )}}{2 e} + \frac {\log {\left (x \right )}}{d} & \text {otherwise} \end {cases} & \text {for}\: e = 0 \\\frac {\begin {cases} - \frac {\operatorname {Li}_{2}\left (\frac {e x^{r} e^{i \pi }}{d}\right )}{r} & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \wedge \left |{x}\right | < 1 \\\log {\left (d \right )} \log {\left (x \right )} - \frac {\operatorname {Li}_{2}\left (\frac {e x^{r} e^{i \pi }}{d}\right )}{r} & \text {for}\: \left |{x}\right | < 1 \\- \log {\left (d \right )} \log {\left (\frac {1}{x} \right )} - \frac {\operatorname {Li}_{2}\left (\frac {e x^{r} e^{i \pi }}{d}\right )}{r} & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \\- {G_{2, 2}^{2, 0}\left (\begin {matrix} & 1, 1 \\0, 0 & \end {matrix} \middle | {x} \right )} \log {\left (d \right )} + {G_{2, 2}^{0, 2}\left (\begin {matrix} 1, 1 & \\ & 0, 0 \end {matrix} \middle | {x} \right )} \log {\left (d \right )} - \frac {\operatorname {Li}_{2}\left (\frac {e x^{r} e^{i \pi }}{d}\right )}{r} & \text {otherwise} \end {cases}}{2 e} + \frac {\log {\left (2 \right )} \log {\left (x \right )}}{2 e} & \text {otherwise} \end {cases}\right )}{d r} - \frac {2 b e \left (\begin {cases} \frac {1}{2 e} + \frac {x^{r}}{d} & \text {for}\: e = 0 \\- \frac {\log {\left (- 2 e x^{r} \right )}}{2 e} & \text {otherwise} \end {cases}\right ) \log {\left (c x^{n} \right )}}{d r} - \frac {2 b e \left (\begin {cases} \frac {1}{2 e} + \frac {x^{r}}{d} & \text {for}\: e = 0 \\\frac {\log {\left (2 d + 2 e x^{r} \right )}}{2 e} & \text {otherwise} \end {cases}\right ) \log {\left (c x^{n} \right )}}{d r} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {a+b\,\ln \left (c\,x^n\right )}{x\,\left (d+e\,x^r\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________